package com.nf.recruitment.service.impl;

import com.nf.recruitment.dao.UserMapper;
import com.nf.recruitment.entity.UserInfo;
import com.nf.recruitment.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper mapper;
    @Override
    public UserInfo getUserById(long userId) {
        return mapper.getUserById(userId);
    }

    @Override
    public void saveUser(UserInfo userInfo) {
        mapper.saveUser(userInfo);
    }
}
